package com.yonyou.iuap.jxzy.dao;


import org.apache.ibatis.annotations.Param;

import com.yonyou.iuap.baseservice.persistence.mybatis.mapper.GenericExMapper;
import com.yonyou.iuap.jxzy.entity.User;
import com.yonyou.iuap.mybatis.anotation.MyBatisRepository;


/**
 * @program: jxProject
 * @description: ${description}
 * @author: Pengjx
 * @create: 2019-05-24 14:28
 **/
@MyBatisRepository
public interface RegisterMapper  extends GenericExMapper<User> {

     /**
      * 登录
      * @param name
      * @param password
      * @return
      */
     User getUser(@Param(value="name")String name,@Param(value="password")String password);

     /**
      * 登录App校验
      * @param name
      * @param password
      * @return
      */
     User getUserApp(@Param(value="name")String name,@Param(value="password")String password);
     
     /**
      * 用户查询
      * @param name
      * @param password
      * @return
      */
     User findUserexit(@Param(value="name")String name);
     
     /**
      * 修改密码
      * @param password
      * @return
      */
     Integer updateUserByName(@Param(value="name") String name,@Param(value="password") String password);

     /**
      * 修改密码App
      * @param password
      * @return
      */
     Integer updateUserByNameApp(@Param(value="name") String name,@Param(value="password") String password);
     
     /**
      * 修改取消预约密码
      * @param name
      * @param orderpassword
      * @return
      */
	Integer updateOrderPasswordByName(@Param(value="name")String name,@Param(value="orderpassword") String orderpassword);
	
	
	/**
     * 权限查询
     * @param name
     * @param password
     * @return
     */
    public String getRes(@Param(value="name")String name);
}
